package com.qf.cx.simplenms.webservice.model;

import java.util.Arrays;
import java.util.Collections;

import com.google.gson.Gson;

public class TopicToJson {
	public static void main(String[] args) {
		Gson gson = new Gson();

		Topic t = new Topic();

		t.setCycle(1000);
		t.setName("topic");
		t.setReaderGroupNames(Arrays.asList("gr1", "gr2"));
		t.setTagMemoryNames(Arrays.asList("tm1", "tm2"));
		System.out.println(gson.toJson(Collections.singletonList(t)));

	}
}
